package com.wwj.my_ummary.myv.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.wwj.my_ummary.config.myConverter.MyStringImageConverter;
import com.wwj.my_ummary.config.myConverter.SettlementConverter;
import com.wwj.my_ummary.enmu.DeleteEnum;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wwj
 * @since 2021-03-06
 */
@Data
@TableName("myTestCount")
@ApiModel(value="Mytestcount对象", description="")
public class Mytestcount  implements Serializable {

    @ExcelIgnore
    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "id",index = 0)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ExcelProperty(value = "count",index = 1)
    @TableField("count")
    private Integer count;



    @ExcelProperty(value = "name",index = 2  , converter = MyStringImageConverter.class)
    @TableField("name")
    private String name;

    @ExcelProperty(value = "dates",index = 3)
    @TableField("dates")
    private Date dates;

    @ExcelProperty(value = "deletes",index = 4 , converter =  SettlementConverter.class)
    @TableField("deletes")
    @TableLogic
    private DeleteEnum deletes;


    @ExcelIgnore
    public static final String ID = "id";
    @ExcelIgnore
    public static final String COUNT = "count";
    @ExcelIgnore
    public static final String NAME = "name";
    @ExcelIgnore
    public static final String DATES = "dates";
    @ExcelIgnore
    public static final String DELETES = "deletes";

}
